run : 
	make clean
	make main
	make write
	./write
	./main

main : main.cpp  RestrictionOperatorFactory.cpp InterpolationOperatorFactory.cpp MultigridSolverFactory.cpp VectorFunctionFactory.cpp
	g++ -g -o $@ $^ -llapacke

write : WriteInput.cpp
	g++ -o $@ $^

clean:
	rm main write Inputfile -rf
